package com.xxl.controll;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author xxl
 * @date 2023/3/23
 */
@org.springframework.web.bind.annotation.ControllerAdvice
public class ControllerAdvice {

    @ExceptionHandler(Exception.class)
    public String error(Model model) {
        model.addAttribute("msg","可能是邮箱错误或者是其他错误");
        return "/index";
    }


}
